import React from 'react';
import { useTranslation } from 'react-i18next';
import { useContext } from 'react';
import { ChatContext } from '@/app/chat-context';
import 'moment/locale/zh-cn';
import { useRouter } from 'next/router';
import { Tree, Radio, Space, } from 'antd';

import { WorkbenchesContext, WorkbenchesContextProvider } from '@/components/workbenches/workbenches-context';
import DataTree from '@/components/workbenches/dataTree';
import Content from '@/components/workbenches/content';

const dataModel = () => {
  const { t, i18n } = useTranslation();
  const { mode, setMode, adminList, userInfo, handleUserInfoChange } = useContext(ChatContext);
  const router = useRouter();
  const { DirectoryTree } = Tree;

  return (
    <>
      <WorkbenchesContextProvider>
        <div className='flex w-full h-full'>
          <DataTree />
          <Content />
        </div>
      </WorkbenchesContextProvider>
    </>
  );
}

export default dataModel;
